package com.zsr.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zsr.example.entity.EduChapter;
import com.zsr.example.vo.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author zsr
 * @since 2021-11-15
 */
public interface EduChapterService extends IService<EduChapter> {
    /**
     * 获取章节类表
     * @param courseId 课程id
     * @return
     */
    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    /**
     * 删除章节
     * @param id 章节id
     * @return
     */
    boolean removeChapterById(String id);

    /**
     * 删除章节
     * @param courseId 课程id
     * @return
     */
    void removeChapterByCourseId(String courseId);
}
